package com.jn.algorithm.拼多多.q2020.question1;

import java.util.Scanner;

/**
 * @author 江南大学1033190417
 * @date 2022/5/19 23:35
 */
public class Main {
    public static void main(String[] args){
        Scanner scanner=new Scanner(System.in);
        int T=scanner.nextInt();
        int[] arrtest=new int[T];
        StringBuilder res=new StringBuilder();
        for(int i=0;i<T;i++){
            String line = scanner.nextLine();
            res.append(line);
        }
        System.out.println(res.toString());
        for(int temp:arrtest){
            System.out.println(solution(temp));
        }
    }

    public static int solution(int N){
        int count=0;
        while(N>=1){
            N/=2;
            count++;
        }
        return count;
    }
}
